package com.controller;

import com.servicec.ServicecA;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AAController {

    @Autowired
    private ServicecA servicecA;

    @RequestMapping("/add")
    public String add(int x,int y){
        System.out.println("到了action");
        String sum = servicecA.add(x,y);
        return sum;
    }

}
